home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _9617F9F80B88424AB8DD75303C7A0166 < prev    next >
Encoding:
Text File  |  2004-02-09  |  1.3 KB  |  52 lines

  1. light("spot_spotmap")
  2. {
  3.     pass()
  4.     {
  5.         tmu()
  6.         {
  7.             texgen("spotlight")
  8.             texture()
  9.             {
  10.                 spotmap()
  11.                 addressfunc("clamp", "clamp", "clamp")
  12.                 filtering("linear_no_mip")  //FIXIT
  13.             }
  14.             colorop("mul", "texture", "tfactor", "current")
  15.         }
  16.  
  17.         tmu()
  18.         {
  19.             texgen("spotlight_z_att")
  20.             texture()
  21.             {
  22.                 image("spot_z.png")
  23.                 addressfunc("clamp", "clamp", "clamp")
  24.                 filtering("linear_no_mip")
  25.             }
  26.             colorop("mul", "texture", "current", "current")
  27.         }
  28.  
  29.         !include("__TerrainColormap.mtt")
  30.  
  31.         tmu()
  32.         {
  33.             TexGen("planar")
  34.             TexMod("scale", "const", %detailsize, 0, 0, "const", %detailsize, 0, 0)
  35.             texture()
  36.             {
  37.                 Image(%detail1texture)
  38.             }
  39.             colorop("mul", "texture", "current", "current")
  40.             alphaop("arg2", "texture", "tfactor", "current")
  41.         }
  42.         tfactor(1,1,1,0)
  43.         colorgen("tfactor", "user", 0,0,0, "none", 0,0,0)
  44.  
  45.         blendfunc("one", "one")
  46.         depthfunc("lequal", 0)
  47.  
  48.         blackfog()
  49.     }
  50. }
  51.  
  52.